<div id="edit-role" style="width: 500px;">
	<c:choose>
		<c:when test="${roleVo.roleId == null && cmd == 'edit'}">
			<zzzzzz-ui:message key="msg_error_role_not_found" type="error"/>
		</c:when>
		<c:otherwise>
			<form:form id="edit-role-form" method="post" modelAttribute="roleVo" action="${ctx}/control_panel/roles/add_or_edit">
				<div class="style1-header large-header">
					<c:choose>
						<c:when test="${cmd == 'edit'}">Edit role (<c:out value="${roleVo.name}"></c:out>)</c:when>
						<c:otherwise>New role</c:otherwise>
					</c:choose>
				</div>
				<form:errors path="*" element="div" cssClass="msg-error"/>
				<form:hidden path="roleId" />
				<div class="fieldset">
					<label for="edit-role-name" class="column of-five">Name</label><form:input path="name" id="edit-role-name" size="255" maxlength="255" class="double-column column of-five" />
				</div>
				<div class="fieldset">
					<label for="edit-role-description" class="column of-five">Description</label><form:textarea path="description" id="edit-role-description" class="column" />
				</div>
				<div class="fieldset">
					<span class="column of-five"></span>
					<ul class="horizontal actions-index index">
						<li>
							<c:choose>
								<c:when test="${cmd == 'edit'}"><input type="submit" id="edit-role-submit" value="Save" name="submit" class="style3-button medium-button button" /></c:when>
								<c:otherwise><input type="submit" id="edit-role-submit" value="Add" name="submit" class="style3-button medium-button button" /></c:otherwise>
							</c:choose>
						</li>
						<li><a class="style1-button medium-button button" href="${ctx}/control_panel/roles">Cancel</a></li>
					</ul>
				</div>
			</form:form>

		</c:otherwise>
	</c:choose>
</div>
